<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
//1 
String loginName=request.getParameter("loginName");
String pwd=request.getParameter("pwd");
//2
System.out.println("loginName:"+loginName);
System.out.println("Passwrord:"+pwd);
if(loginName.equals(pwd)){
	session.setAttribute("CUR_USER", loginName);
	response.sendRedirect("pg1.jsp");
}else{
	response.sendRedirect("login.jsp");
}
%>